﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MySite.Model.VoteInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	发起投票
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>发起投票</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="listable">
        <tr class="listheader">
            <td colspan="2">
                <h2>
                    投票内容</h2>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                投票主题
            </td>
            <td>
                <%: Html.TextBoxFor(model => model.Title, ViewData["inputcss"] as Dictionary<string, object>)%>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                投票选项
            </td>
            <td>
                <%: Html.TextAreaFor(model => model.VoteItems, ViewData["inputcss"] as Dictionary<string, object>)%>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                开始时间
            </td>
            <td>
                <%= Html.CalendarFor(model => model.BeginDate)%>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                结束时间
            </td>
            <td>
                <%= Html.CalendarFor(model => model.EndDate)%>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                是否已经过期
            </td>
            <td>
                <%: Html.RadioButtonFor(model => model.IsOver, ViewData["inputcss"] as Dictionary<string, object>)%>
            </td>
        </tr>
    </table>
    <div class="bj-sp10">
    </div>
    <div class="f-blue-1218 bj-center">
        <input type="submit" class="admin_btn" value="保存" />
    </div>
    <% } %>

    <div>
        <%= Html.ActionLink("返回", "VoteList") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>

